
<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>dgui.application</title>
<link rel="stylesheet" type="text/css" href="candydoc/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="candydoc/ie56hack.css"><![endif]-->
<script language="JavaScript" src="candydoc/util.js" type="text/javascript"></script>
<script language="JavaScript" src="candydoc/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="candydoc/explorer.js" type="text/javascript"></script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("dgui.application");</script>
	<table class="content">
		<tr><td id="docbody"><h1>dgui.application</h1><!-- Generated by Ddoc from dgui\application.d -->
<br><br>

<script>explorer.outline.incSymbolLevel();</script>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">class 
<span class="currsymbol">Application</span>
<script>explorer.outline.addDecl('Application');</script>

;
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>The Application class manage the whole program, it can be used for load embedded resources,
   close the program, get the current path and so on.
   Internally in initialize manifest (if available), DLLs, and it handle exceptions showing a window with exception information.<br><br>


<script>explorer.outline.incSymbolLevel();</script>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static @property HINSTANCE 
<span class="currsymbol">instance</span>
<script>explorer.outline.addDecl('instance');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>This method calls GetModuleHandle() API
<br><br>
<b>Returns:</b><br>
HINSTANCE of the program<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static @property string 
<span class="currsymbol">executablePath</span>
<script>explorer.outline.addDecl('executablePath');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd><b>Returns:</b><br>
String value of the executable path (<b>including</b> the executable name)<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static @property string 
<span class="currsymbol">tempPath</span>
<script>explorer.outline.addDecl('tempPath');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>This method calls GetTempPath() API
<br><br>
<b>Returns:</b><br>
String value of the system's TEMP directory<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static @property string 
<span class="currsymbol">startupPath</span>
<script>explorer.outline.addDecl('startupPath');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd><b>Returns:</b><br>
String value of the executable path (<b>without</b> the executable name)<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static @property Resources 
<span class="currsymbol">resources</span>
<script>explorer.outline.addDecl('resources');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>This property allows to load embedded resources.
<br><br>
<b>Returns:</b><br>
The Instance of reource object

<br><br>
<b>See Also:</b><br>
Resources Class<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static int 
<span class="currsymbol">run</span>
<script>explorer.outline.addDecl('run');</script>

(Form <span class="funcparam">mainForm</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Start the program and adds onClose() event at the MainForm
<br><br>
<b>Params:</b><br>
<table><tr>
<td nowrap valign="top" style="padding-right: 8px">Form <span class="funcparam">mainForm</span></td>

               
<td>The Application's main form</td></tr>
</table><br>
<b>Returns:</b><br>
Zero<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">static void 
<span class="currsymbol">exit</span>
<script>explorer.outline.addDecl('exit');</script>

(int <span class="funcparam">exitCode</span> = 0);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Close the program.
<br><br>
<b>Params:</b><br>
<table><tr>
<td nowrap valign="top" style="padding-right: 8px">int <span class="funcparam">exitCode</span></td>

               
<td>Exit code of the program (usually is 0)</td></tr>
</table><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">package static DialogResult 
<span class="currsymbol">showExceptionForm</span>
<script>explorer.outline.addDecl('showExceptionForm');</script>

(Throwable <span class="funcparam">e</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>When an exception was thrown, the Application class call this method
	  showing the exception information, the user has the choice to continue the
	  application or terminate it.
<br><br>
<b>Returns:</b><br>
A DialogResult enum that contains the button clicked by the user (IGNORE or EXIT)<br><br>

</dd>
</dl>
<script>explorer.outline.decSymbolLevel();</script>


</dd>
</dl>
<script>explorer.outline.decSymbolLevel();</script>


</td></tr>
		<tr><td id="docfooter">
			Page was generated with
			<img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
			on Sun Nov 27 13:18:13 2011

		</td></tr>
	</table>
</div>
<script>
	explorer.packageExplorer.addModule("dgui.core.charset");
	explorer.packageExplorer.addModule("dgui.core.collection");
	explorer.packageExplorer.addModule("dgui.core.commondialog");
	explorer.packageExplorer.addModule("dgui.core.enums");
	explorer.packageExplorer.addModule("dgui.core.events");
	explorer.packageExplorer.addModule("dgui.core.exception");
	explorer.packageExplorer.addModule("dgui.core.geometry");
	explorer.packageExplorer.addModule("dgui.core.handle");
	explorer.packageExplorer.addModule("dgui.core.idisposable");
	explorer.packageExplorer.addModule("dgui.core.signal");
	explorer.packageExplorer.addModule("dgui.core.utils");
	explorer.packageExplorer.addModule("dgui.core.winapi");
	explorer.packageExplorer.addModule("dgui.core.wincomp");
	explorer.packageExplorer.addModule("dgui.core.windowclass");
	explorer.packageExplorer.addModule("dgui.all");
	explorer.packageExplorer.addModule("dgui.application");
	explorer.packageExplorer.addModule("dgui.button");
	explorer.packageExplorer.addModule("dgui.canvas");
	explorer.packageExplorer.addModule("dgui.colordialog");
	explorer.packageExplorer.addModule("dgui.combobox");
	explorer.packageExplorer.addModule("dgui.control");
	explorer.packageExplorer.addModule("dgui.folderbrowserdialog");
	explorer.packageExplorer.addModule("dgui.fontdialog");
	explorer.packageExplorer.addModule("dgui.form");
	explorer.packageExplorer.addModule("dgui.imagelist");
	explorer.packageExplorer.addModule("dgui.label");
	explorer.packageExplorer.addModule("dgui.listbox");
	explorer.packageExplorer.addModule("dgui.listview");
	explorer.packageExplorer.addModule("dgui.menu");
	explorer.packageExplorer.addModule("dgui.messagebox");
	explorer.packageExplorer.addModule("dgui.openfiledialog");
	explorer.packageExplorer.addModule("dgui.panel");
	explorer.packageExplorer.addModule("dgui.picturebox");
	explorer.packageExplorer.addModule("dgui.progressbar");
	explorer.packageExplorer.addModule("dgui.registry");
	explorer.packageExplorer.addModule("dgui.resources");
	explorer.packageExplorer.addModule("dgui.richtextbox");
	explorer.packageExplorer.addModule("dgui.savefiledialog");
	explorer.packageExplorer.addModule("dgui.splitter");
	explorer.packageExplorer.addModule("dgui.statusbar");
	explorer.packageExplorer.addModule("dgui.tabcontrol");
	explorer.packageExplorer.addModule("dgui.textbox");
	explorer.packageExplorer.addModule("dgui.timer");
	explorer.packageExplorer.addModule("dgui.toolbar");
	explorer.packageExplorer.addModule("dgui.trackbar");
	explorer.packageExplorer.addModule("dgui.treeview");</script>
</body></html>


